<?php
namespace app\common\model;

use think\Model;

class SystemSetting extends Model
{
    // 指定表名,不含前缀
    protected $name = 'system_setting';
    public function getListByArgOne($arg, $field = '*',$left_join = null)
    {
        if (!empty($left_join)){
            $table = $left_join[0];
            $conditoon = $left_join[1];
            return $this->where($arg)->field($field)->join($table,$conditoon,'left')->find();
        }else{
            return $this->where($arg)->field($field)->find();
        }
    }
}
